package com.neu.credit.creditscore.entity.parking;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.time.LocalDateTime;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
@TableName("parking_spaces")
@Schema(name = "ParkingSpaces", description = "车位信息表")
public class ParkingSpaces {
    //空闲
    public final static int FREE= 0;
    //占用
    public final static int  USEING = 1;
    //维护中
    public final static int MAINTAIN= 2;
    //已预约
    public final static int APPOINT= 3;
    @Schema(description = "车位ID，自增主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer spaceId;

    @Schema(description = "所属停车场ID")
    private Integer parkingLotId;

    @Schema(description = "车位编号")
    private String spaceNumber;

    @Schema(description = "车位类型 0 普通车位 1 残疾人车位 2 充电车位")
    private Integer spaceType;

    @Schema(description = "车位状态（0-空闲，1-占用，2-维护中，3-已预约）")
    private Integer spaceStatus;

    @Schema(description = "创建时间")
    private LocalDateTime createdAt;

    @Schema(description = "更新时间")
    private LocalDateTime updatedAt;
}